package edu.zhuoxun.blogserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JacksonInject;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.TimeZone;

@Data
public class Note {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;
    private String contentMd;
    private String contentHtml;
    private String abs;
    private String cover;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;
}
